// File: src/core/reminder/ReminderDaemon.h
#pragma once
#include <thread>
#include <atomic>
#include <chrono>
#include "tasks/TaskManager.h"

class ReminderDaemon {
public:
    ReminderDaemon(TaskManager& tm) : taskManager(tm) {}
    ~ReminderDaemon() { stop(); }
    
    void start();
    void stop();
    
private:
    void run();
    
    TaskManager& taskManager;
    std::thread daemonThread;
    std::atomic<bool> running{false}; //原子变量
};
